<?php
namespace app\wechat\controller;
use app\api\service\Order;
use app\api\service\Repair;
use think\Controller;
use think\View;
use think\Db;
use app\api\service\Nim;

class WNim extends Controller
{
    // 云信页面
    public function index() {
        $type = input('param.type', 0);
        $member_id = session('member_id');

        $param = [
            'type' => $type,
            'member_id' => $member_id
        ];
        //获取云信帐号信息
        $data = Nim::get_nim_account($param);
        dump($data);
        $this->assign('data', $data['data']);
        return view();
    }
}
